Skip to content

fix(@angular/cli): populate path with working directory in nested schematics#23212

Merged
dgp1130 merged 1 commit into
angular:mainfrom
alan-agius4:working-directory
May 24, 2022
Merged

fix(@angular/cli): populate path with working directory in nested schematics#23212
dgp1130 merged 1 commit into
angular:mainfrom
alan-agius4:working-directory

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

With this change we change the how we handle "format": "path" schematic property option. We replace the formatter in favour of a SmartDefaultProvider, which ensures that nested schematics can access the workingDirectory.

@alan-agius4 alan-agius4 force-pushed the working-directory branch 3 times, most recently from 343ad56 to 13ffd1b Compare May 24, 2022 12:29
@alan-agius4 alan-agius4 marked this pull request as ready for review May 24, 2022 13:38
@alan-agius4 alan-agius4 added the target: rc This PR is targeted for the next release-candidate label May 24, 2022
@alan-agius4 alan-agius4 requested a review from clydin May 24, 2022 13:38
@alan-agius4 alan-agius4 force-pushed the working-directory branch 2 times, most recently from 5cb5b58 to 5367f29 Compare May 24, 2022 14:20
Comment thread packages/schematics/angular/universal/schema.json Outdated
@alan-agius4 alan-agius4 requested a review from clydin May 24, 2022 14:34
@alan-agius4 alan-agius4 added this to the v14 milestone May 24, 2022
…ematics

With this change we change the how we handle `"format": "path"` schematic property option. We replace the formatter in favour of a `SmartDefaultProvider`, which ensures that nested schematics can access the `workingDirectory`.
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label May 24, 2022
@dgp1130 dgp1130 merged commit e751464 into angular:main May 24, 2022
@alan-agius4 alan-agius4 deleted the working-directory branch May 24, 2022 17:32
alan-agius4 added a commit to alan-agius4/components that referenced this pull request May 27, 2022
…th option

The Angular CLI, handles options with both name and format `path` as a special case. This behaviour has been deprecated and instead the `workingDirectory` smart provider should be used instead. Currently, when not using the provider a deprecation warning will be issue.

See: angular/angular-cli#23212
alan-agius4 added a commit to alan-agius4/components that referenced this pull request May 27, 2022
…tion

The Angular CLI, handles options with both name and format `path` as a special case. This behaviour has been deprecated and instead the `workingDirectory` smart provider should be used instead. Currently, when not using the provider a deprecation warning will be issue.

See: angular/angular-cli#23212
devversion pushed a commit to angular/components that referenced this pull request May 27, 2022
…th option

The Angular CLI, handles options with both name and format `path` as a special case. This behaviour has been deprecated and instead the `workingDirectory` smart provider should be used instead. Currently, when not using the provider a deprecation warning will be issue.

See: angular/angular-cli#23212
devversion pushed a commit to angular/components that referenced this pull request May 27, 2022
…tion

The Angular CLI, handles options with both name and format `path` as a special case. This behaviour has been deprecated and instead the `workingDirectory` smart provider should be used instead. Currently, when not using the provider a deprecation warning will be issue.

See: angular/angular-cli#23212
devversion pushed a commit to angular/components that referenced this pull request May 27, 2022
…th option

The Angular CLI, handles options with both name and format `path` as a special case. This behaviour has been deprecated and instead the `workingDirectory` smart provider should be used instead. Currently, when not using the provider a deprecation warning will be issue.

See: angular/angular-cli#23212
(cherry picked from commit 3ec1291)
devversion pushed a commit to angular/components that referenced this pull request May 27, 2022
…tion

The Angular CLI, handles options with both name and format `path` as a special case. This behaviour has been deprecated and instead the `workingDirectory` smart provider should be used instead. Currently, when not using the provider a deprecation warning will be issue.

See: angular/angular-cli#23212
(cherry picked from commit 12b35c4)
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jun 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants